package cn.kxx.service;

/**
 * @Auther: Kong Xiang Xiang
 * @Date: 2022/11/2 19:54
 * @DESC:
 */
import cn.kxx.pojo.Role;
import cn.kxx.pojo.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public interface UserService extends UserDetailsService {

    //查询所有user信息
    List<UserInfo> findAll();

    void save(UserInfo userInfo);

    UserInfo findById(Integer id);

    List<Role> findUserByIdAndAllRole(Integer id);

    void addRoleToUser( Integer userid,Integer[] roleids);

    void deleteUser(int id);

    void selectDelete(String[] ids);
}